/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wulangaaa
 * Date: 2025-04-13
 * Time: 17:04
 */
public class Test {
    public static void main(String[] args) {
        int[] array={4, 2, 6, 1, 3, 5, 15, 7, 16,14};
        RBTree rbTree=new RBTree();
        for (int i = 0; i < array.length; i++) {
            rbTree.insert(array[i]);
        }
        rbTree.inorder(rbTree.root);
      boolean ret= rbTree.isBRT(rbTree.root);
        System.out.println(rbTree.isBRT(rbTree.root));

    }

}
